<?php $this->load->view('layout/header'); ?>
    <div id="container">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo b_url('wechat/more_add')?>">添加消息</a>
                    <a onclick="javascript:return checkEdit(this);" name="msgid" href="javascript:;)" src="<?php echo b_url('wechat/more_add/');?>">修改消息</a>
                    <a onclick="javascript:return checkDel(this);" name="msgid" href="javascript:;)" src="<?php echo b_url('wechat/delete_info/sendmore/msgid/weixinmore/')?>">删除消息</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'msgid')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=SysLimitID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    自动编号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    消息类型
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    内容简介
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    操作
                </td>
            </tr>
            <?php foreach($info as $k=>$v) : ?>
                <tr class="table_list_row_normal">
                    <td style="width: 2%">
                        <input name="msgid" type="checkbox"  value="<?php echo $v['msgid']?>" />
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['msgid']?>
                    </td>
                    <td style="width: 10%">
                        <?php if($v['msgtype'] == 'more'){echo '群发消息';}?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['msgcontent']?>
                    </td>
                    <td style="width: 10%">
                        <a href="/admin.php/wechat/more_do_send/<?php echo $v['msgid']; ?>">发送</a>
                    </td>
                </tr>
            <?php endforeach ; ?>
        </table>
        <!--列表结束-->
        <!--分页开始-->
        <?php $pagination->show();?>
        <!--分页结束-->
    </div>
    <script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>